import 'antd/dist/antd.min.css';
import Admin from './pages/Admin/Admin';
import Login from './pages/Login/Login';

import { BrowserRouter, Routes, Route, Navigate } from 'react-router-dom'
import { ConfigProvider } from 'antd'
import zhCN from 'antd/lib/locale/zh_CN';

function App() {
  return (
    <div className="App">
      <ConfigProvider locale={zhCN}>
        <BrowserRouter>
          <Routes>
            <Route exact path="*" element={<Admin></Admin>}></Route>
            <Route exact path="/login" element={<Login></Login>}></Route>
          </Routes>
        </BrowserRouter>
      </ConfigProvider>
    </div>
  );
}

export default App;
